import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { formatTime } from './utils/time'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.config.productionTip = false

Vue.use(ElementUI);

Vue.directive('title',(el,binding)=>{
  document.title=el.dataset.title
})

Vue.filter('format',formatTime)

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
